#ifndef STATEBAR_VIEW_H
#define STATEBAR_VIEW_H

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl.h"
#endif

#include "lv_anim_timeline.h"

#include "main.h"


#define STATUS_BAR_HEIGHT 25


typedef struct
{
		lv_obj_t* cont;

    struct
    {
        lv_obj_t* img;
        lv_obj_t* label;
    } satellite;

    lv_obj_t* imgSD;

    lv_obj_t* labelClock;

    lv_obj_t* labelRec;

    struct
    {
        lv_obj_t* img;
        lv_obj_t* objUsage;
        lv_obj_t* label;
    } battery;
		
} statebar_view_t;

statebar_view_t statusbar_view_create(lv_obj_t* par);
void statusbar_appear(bool en);
void statusbar_set_style(StatusBar_Style_t style);
void statusbar_set_rec(uint8_t show, const char *str);

#endif

